package coredto

import (
	"core/coreinfo"
	"core/corestruct"
	"core/coreutil"
	"reflect"
)

type HtDeptBaseDto struct {
	Id int64 `json:"id,string"                         gorm:"column:id;primaryKey;comment:主键;autoIncrement:false;"`

	Name     string `json:"name"                             gorm:"column:name;DEFAULT:'';not null;comment:机构名称;"`
	HtplatId int64  `json:"htplatId,string"                    gorm:"column:htplat_id;DEFAULT:0;not null;comment:平台;"`
	Pid      int64  `json:"pid,string"                       gorm:"column:pid;DEFAULT:0;not null;comment:父平台;"`
}

func (p *HtDeptBaseDto) TableName() string {
	return "HtDept"
}

func HtDeptBaseDtoInit() {
	var mcls = &HtDeptBaseDto{}
	var m = &corestruct.MyClass{
		Name:     "机构基础Dto",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  coreinfo.PRJ_NAME,
		Type:     reflect.TypeOf(mcls),
	}
	coreutil.StructUtil.AddDto(m)
}
